﻿@{
    Layout = "_AdminLayout.cshtml";
}
@using System
@using Nop.Web.Framework
@using Nop.Web.Framework.UI
@using System.Web.Mvc.Html;
@{
    Html.AddCssFileParts(ResourceLocation.Head, "~/Plugins/Misc.Tabmanager/Styles/TabManager.Css");
    Html.AddScriptParts(ResourceLocation.Foot, "~/Plugins/Misc.Tabmanager/Scripts/TabManager.Js", false);
}
<h2>Tab Manager<sub><a href="/TabManager/ConfigureTabs">Configure</a></sub></h2>
<p id="autoStatus"></p>
@if(!string.IsNullOrEmpty(ViewBag.SampleMenuITems)){
@Html.Raw(ViewBag.SampleMenuITems)
}
<br />
<div style="width:100%">
    <div style="width:35%;float:left; margin-right:15px;">
        <h2>Current Tabs</h2>
        <ul id="Tabs-tree"></ul><br />
        <input id="btnSaveTv" type="button" value="save changes" />
    </div>
    <div>
        @using(Ajax.BeginForm("ManageTabs", "TabManager", FormMethod.Post, null))
        {
            <fieldset>
                <legend>Edit Tab</legend><!-- Button trigger modal -->
                <div class="form-group">
                    <label for="TabName">Tabname:</label>
                    <input type="text" class="form-control" id="TabName" name="TabName" required="required" message="Tab Name is Required">                   
                </div>
                <div class="form-group">
                    <label for="TabName">Tab Name:</label>
                    
                </div>
                <div class="form-group-cb">
                    <label><input type="checkbox" id="LogOnRequired" name="LogOnRequired">Login Required?</label>
                </div>
                <div class="form-group">
                    <label for="ParentTabId">Parent Tab:</label>
                    <input type="text" id="ParentTabId" name="ParentTabId" />
                </div>
                <div class="form-group">
                    <label for="TabName">Tab order:</label>
                    <input type="text" class="form-control" id="TabOrder" name="TabOrder">
                </div>
                <div class="form-group">
                    <label for="Title">Title</label>
                    <input type="text" class="form-control" id="Title" name="Title" required="required" message="Tab Title is Required">
                </div>
                <div class="form-group">
                    <label for="TabController">Controller:</label>
                    <input type="text" class="form-control" id="TabController" name="TabController">
                </div>
                <div class="form-group">
                    <label for="TabControllerAction">Action:</label>
                    <input type="text" class="form-control" id="TabControllerAction" name="TabControllerAction">
                </div>
                <div class="form-group-cb">
                    <label><input type="checkbox" id="PermanentRedirect" name="PermanentRedirect"> PermanentRedirect</label>
                </div>
                <div class="form-group">
                    <label for="PermanentRedirectUrl">Permanent Redirect Url:</label>
                    <input type="text" class="form-control" id="PermanentRedirectUrl" name="PermanentRedirectUrl">                   
                </div>
                <div class="form-group">
                    <label for="StartDate">Start Date:</label>
                    <input type="text" class="form-control" id="StartDate" name="StartDate">
                </div>
                <div class="form-group">
                    <label for="EndDate">End Date:</label>
                    <input type="text" class="form-control" id="EndDate" name="EndDate">
                </div>
                <div class="form-group-cb">
                    <label><input type="checkbox" id="IsSecure" name="IsSecure"> Secure?</label>

                </div>
                <div class="form-group-cb">
                    <label><input type="checkbox" id="DisableLink" name="DisableLink"> Disable Link</label>

                </div>
                <div class="form-group-cb">
                    <label><input type="checkbox" id="IsActive" name="IsActive"> Active?</label>
                </div>
                <div class="form-group-cb">
                    <label><input type="checkbox" id="IsDeleted" name="IsDeleted"> Delete?</label>

                </div>
                <div class="form-group-cb">
                    <label><input type="checkbox" id="IsVisible" name="IsVisible">Visible?</label>

                </div>
                <div class="form-group">
                    <label for="KeyWords">KeyWords:</label>
                    <textarea class="form-control" rows="2" id="KeyWords" name="KeyWords"></textarea>
                </div>
                <div class="form-group">
                    <label for="Description">Description:</label>
                    <textarea class="form-control" rows="3" id="Description" name="Description"></textarea>
                </div>
                <input id="frmReset" type="reset" value="reset" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
                <input type="submit" value="save" />
                <input type="hidden" id="hid" name="hid" value="0" />
                <br /><em>Note:</em> either a "Permanent Redirect URL" or "Controller and Action" must be provided
            </fieldset>
        }
    </div>
</div>
<div id="Tabs-grid"></div>